﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using UIT.ScrumTool.DTO;

namespace UIT.ScrumTool.Service.Interface
{
    [ServiceContract]
    public interface IProjectService
    {
        [OperationContract]
        List<ProjectDto> ProjectGetByAll();

        [OperationContract]
        ProjectDto ProjectGetById(int id);

        [OperationContract]
        List<ProjectDto> ProjectGetByTop(string top, string where, string order);

        [OperationContract]
        int ProjectInsert(ProjectDto project);

        [OperationContract]
        bool ProjectUpdate(ProjectDto project);

        [OperationContract]
        bool ProjectDelete(int id);

        [OperationContract]
        int ProjectCount();
    }
}
